package games.ninJumpDx.ui.factorys
{
	import flash.display.Bitmap;
	import flash.display.SimpleButton;
	
	import games.ninJumpDx.tools.Tools;
	import games.ninJumpDx.ui.button.BitmapButton;

	public class BitmapButtonFactory extends SimpleButtonFactory
	{
		public function BitmapButtonFactory()
		{
			super();
		}
		
		override protected function createButton():SimpleButton
		{
			var down:Bitmap = Tools.getBitmapByName(m_name,GFrame.MAIN_UI);
			var up:Bitmap   = Tools.getBitmapByName(m_name,GFrame.MAIN_UI);
			var over:Bitmap = Tools.getBitmapByName(m_name,GFrame.MAIN_UI);
			var hit:Bitmap  = Tools.getBitmapByName(m_name,GFrame.MAIN_UI);
			return new BitmapButton(up,over,down,hit);
		}
	}
}